var checkUtils = $
		.extend({
			getTimeByLong : function(long) { // 通过long类型数据获得（yyyy-mm-dd）格式日期
				var date = new Date(long);
				var year = date.getFullYear();
				var month = date.getMonth();
				var day = date.getDate();
				var temp = day + "";
				if (day < 10) {
					temp = "0" + temp;
				}
				if (month < 10) {
					return year + "-0" + month + "-" + temp;
				} else {
					return year + "-" + month + "-" + temp;
				}
			},
			judgePhoneNum : function(phoneNum) { // 判断phoneNum是否为11位数字组成，是返回0否则返回-1
				if (phoneNum.length == 11) {
					for (var i = 0; i < phoneNum.length; ++i) {
						if (!(phoneNum.charAt(i) >= '0' && phoneNum.charAt(i) <= '9')) {
							return -1;
						}
					}
					return 0;
				} else {
					return -1;
				}
			},
			judgeDateString : function(dStr) { // 判断日期字符格式是否正确(yyyy-mm-dd)数字正确：0，错误：-1
				if (dStr != "" && dStr != null) {
					var strs = dStr.split("-");
					if (strs.length == 3) {
						for ( var s in strs) {
							for (var i = 0; i < strs[s].length; ++i) {
								if (!(strs[s].charAt(i) >= '0' && strs[s]
										.charAt(i) <= '9')) {
									return -1;
								}
							}
						}
						return 0;
					}
					return -1;
				}
				return 0;
			},
			myFormatToSeconds : function(value) { // 自定义easyui格式转换器输出日期格式yyyy-mm-dd
				var t = Date.parse(value);
				if (!isNaN(t)) {
					var date = new Date(t);
				} else {
					return ;
				}
				var y = date.getFullYear();
				var m = date.getMonth() + 1;
				var d = date.getDate();
				var h = date.getHours();
				var mm = date.getMinutes();
				var s = date.getSeconds();
				var year = y + "";
				var month = m + "";
				var day = d + "";
				var hours = h + "";
				var minutes = mm + "";
				var seconds = s + "";
				if (m < 10) {
					month = "0" + month;
				}
				if (d < 10) {
					day = "0" + day;
				}
				return year + '-' + month + '-' + day + ' ' + hours + ':'
						+ minutes + ':' + seconds;
			},
			myFormat : function(value) { // 自定义easyui格式转换器输出日期格式yyyy-mm-dd
				var t = Date.parse(value);
				if (!isNaN(t)) {
					var date = new Date(t);
				} else {
					return new Date().getFullYear() + "-"
							+ (new Date().getMonth()+1) + "-"
							+ new Date().getDate()
				}
				var y = date.getFullYear();
				var m = date.getMonth() + 1;
				var d = date.getDate();
				var year = y + "";
				var month = m + "";
				var day = d + "";
				if (m < 10) {
					month = "0" + month;
				}
				if (d < 10) {
					day = "0" + day;
				}
				return year + '-' + month + '-' + day
			},
		});